<%@ page contentType="text/html; charset=utf-8" 
%><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" 
%><%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" 
%><%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" 
%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>read.jsp</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%@ include file="/jsp/common/include.jquery.jsp" %>
<jsp:include page="/jsp/common/include.commoncode.jsp" flush="false"><jsp:param name="gp" value="1,2"/></jsp:include>
<style type="text/css">
    body { font-size: 12px; }
</style>
<script type="text/javascript">
//*************************************************************************
//*************************************************************************
var page = "${param.page}";

function call() {
    $.ajax({
    	type: "post",
    	url: "${pageContext.request.contextPath}/app/bulletin/read.jsp",
    	async: true,
    	dataType: "json",
    	success: function(data, text, request) {
    		
    	},
    	error: function(jqXHR, textStatus, errorThrown) {
    		
    	}
    });	
}

function init() {
    //call();	 
}

function _edit() {
	alert("edit");
}

function _reply() {
    document.location.href = window.location.pathname + "?parentArticleId=" + $("#articleId").val();
}

function _delete() {
	alert("delete");
}

function _save() {
	
}

function _cancel() {
	
}
/* 
 * 상세보기: 수정,답글,삭제,목록 
 * 수정: 저장,취소(상세보기로)
 * 등록: 저장,취소(목록의 조회 페이지로)
 * 답글: 저장,취소(목록의 조회 페이지로)
 */
</script>
</head>
<body>
<input type="hidden" id="bulletinGb" value="${param.bulletinGb}"/>
<input type="hidden" id="articleId" value="${param.articleId}"/>
<input type="hidden" id="parentArticleId" value="${param.parentArticleId}"/>
<input type="button" id="btnEdit" value="수정" onclick="_edit();"/><input type="button" id="btnReply" value="답글" onclick="_reply();"/><input type="button" id="btnDelete" value="삭제" onclick="_delete();"/><input type="button" id="btnList" value="목록" onclick="_list();"/><input type="button" id=btnSave" value="저장" onclick="_save();"/><input type="button" id="btnCancel" value="취소" onclick="_cancel();"/>
<table cellspacing=0 cellpadding=0 style="width:100%;">
    <colgroup>
        <col width="100px"/>
        <col>
    </colgroup>
    <tr><td>ID
    </td><td><input type="text" readonly="true" id="articleId"/>
    </td></tr>
    <tr><td>공지여부
    </td><td><input type="radio" readonly="true" id="fixYnY" name="fixYn"/>Y<input type="radio" readonly="true" id="fixYnN" name="fixYn"/>N
    </td></tr>
    <tr><td>팝업여부
    </td><td><input type="radio" readonly="true" id="popupYnY" name="popupYn"/>Y<input type="radio" readonly="true" id="popupYnN" name="popupYn"/>N
    </td></tr>
    <tr><td>제목
    </td><td><input type="text" readonly="true" id="title"/>
    </td></tr>
    <tr><td>내용
    </td><td><textarea readonly="true" id="content"></textarea>
    </td></tr>
</table>
<a href="#">이전글</a><br/>
<a href="#">다음글</a>
</body>
</html>